<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>角色管理</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <%@include file="common.jsp"%>
    <script type="text/javascript" src="/js/views/role.js"></script>
</head>
<body>
    <table id="role_datagrid"></table>

    <%--新增或更新对话框--%>
    <div id="role_dialog">
        <form id="role_form" method="post">
            <table align="center" style="margin-top: 15px">
                <%--隐藏域,如果编辑的时候,会把id的值放到这里--%>
                <input type="hidden" name="id"/>
                <tr>
                    <td>角色名称<input name="name"/> </td>
                    <td>角色编号<input name="sn"/> </td>
                </tr>
                <tr>
                    <td><table id="allPermission"></table></td>
                    <td><table id="selfPermission"></table></td>
                </tr>
            </table>
        </form>
    </div>


    <div id="role_datagrid_tb">
        <%--数据表格的顶部按钮--%>
        <div>
            <a class="easyui-linkbutton" iconCls="icon-add" plain="true" data-cmd="add">增加</a>
            <a id="role_datagrid_edit" class="easyui-linkbutton" iconCls="icon-edit" plain="true" data-cmd="edit">编辑</a>
            <a id="role_datagrid_del" class="easyui-linkbutton" iconCls="icon-remove" plain="true" data-cmd="delrole">离职</a>
            <a class="easyui-linkbutton" iconCls="icon-reload" plain="true" data-cmd="reload">刷新</a>
        </div>
        <%--关键字搜索--%>
        <div>
            关键字搜索<input type="text" name="keyWord"><a class="easyui-linkbutton"  iconCls="icon-search" data-cmd="searchrole">搜索</a>
        </div>
    </div>

    <%--对话框的底部按钮--%>
    <div id="role_dialog_bt">
        <a class="easyui-linkbutton" iconCls="icon-save" plain="true" data-cmd="save">保存</a>
        <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="cancel">取消</a>
    </div>
</body>
</html>
